if __name__ == '__main__':
    n = int(input())
    d = {}
    for i in range(n):
        x = input()
        if x not in d:
            d[x] = 1
    print(len(d))
    